let Main = () => import("@/views/Main.vue")
export default [
{
        path: "",
        name: "home",
        component: Main,
        meta: {
            title: "home",
            icon: "HomeFilled",
        },
        children: [
            {
                path: "home",
                name: "home",
                component: () => import("@/views/Home.vue"),
                meta: {
                    title: "home",
                    icon: "HomeFilled",
                }
            }
        ]
    },

    {
        path: "operate",
        name: "OperateName",
        component: Main,
        meta: {
            title: "operationName.operationName",
            icon: "Histogram",
            id: "2"
        },
        children: [
            {
                path: "order",
                name: "OrderName",
                component: () => import('@/views/Operate/Order.vue'),
                meta: {
                    title: "operationName.orderManagement"
                }
            },
            {
                path: "comment",
                name: "CommentName",
                component: () => import('@/views/Operate/Comment.vue'),
                meta: {
                    title: "operationName.comment",
                    id: "2-1"
                }
            },
            {
                path: "freight",
                name: "FreightName",
                component: () => import('@/views/Operate/Freight.vue'),
                meta: {
                    title: "operationName.FreightManagement",
                    id: "2-2"
                }
            },

        ]
    },
    {
        path: "commodity",
        name: "CommodityName",
        component: Main,
        meta: {
            title: "commodityManagement.commodityManagement",
            icon: "ShoppingCart",
            id: "3"
        },
        children: [
            {
                path: "commList",
                name: "CommListName",
                component: () => import('@/views/Commodity/CommList.vue'),
                meta: {
                    title: "commodityManagement.productList",
                    id: "3-1"
                }
            },
            {
                path: "group",
                name: "GroupName",
                component: () => import('@/views/Commodity/Group.vue'),
                meta: {
                    title: "commodityManagement.groupCommodity",
                    id: "3-2"
                }
            },
            {
                path: "category",
                name: "CategoryName",
                component: () => import('@/views/Commodity/Category.vue'),
                meta: {
                    title: "commodityManagement.categorymanagement",
                    id: "3-3"
                }
            },
            {
                path: "create",  //创建商品
                name: "createName",
                component: () => import('@/views/Commodity/Create.vue'),
                meta: {
                    title: "commodityManagement.create",
                    id: "3-4",
                    hide: true,
                    keepAlive: true
                }
            },
            {
                path: "edit/:id",  //编辑商品
                props: true,
                name: "editName",
                component: () => import('@/views/Commodity/Edit.vue'),
                meta: {
                    title: "commodityManagement.edit",
                    id: "3-5",
                    hide: true
                }
            },
        ]
    },
    {
        path: "promotion",
        name: "PromotionName",
        component: Main,
        meta: {
            title: "marketingManagement.marketingManagement",
            icon: "Management",
            id: "4"
        },
        children: [
            {
                path: "notice",
                name: "NoticeName",
                component: () => import('@/views/Promotion/Notice.vue'),
                meta: {
                    title: "marketingManagement.advertisingManagement",
                    id: "4-1"
                }
            },
            {
                path: "coupon",
                name: "CouponName",
                component: () => import('@/views/Promotion/Coupon.vue'),
                meta: {
                    title: "marketingManagement.couponManagement",
                    id: "4-2"
                }
            },
        ]
    },
    {
        path: "user",
        name: "UserName",
        component: Main,
        meta: {
            title: "userManagement.userManagement",
            icon: "User",
            id: "5"
        },
        children: [
            {
                path: "member",
                name: "MemberName",
                component: () => import('@/views/User/Member.vue'),
                meta: {
                    title: "userManagement.memberManagement",
                    id: "5-1"
                }
            },
            {
                path: "address",
                name: "AddressName",
                component: () => import('@/views/User/Address.vue'),
                meta: {
                    title: "userManagement.siteManagement",
                    id: "5-2"
                }
            },
        ]
    },
    {
        path: "systemSet",
        name: "SystemSetName",
        component: Main,
        meta: {
            title: "systemManagement.systemManagement",
            icon: "Setting",
            id: "6"
        },
        children: [
            {
                path: "sytSet",
                name: "SytSetName",
                component: () => import('@/views/SystemSet/SytSet.vue'),
                meta: {
                    title: "systemManagement.config",
                    id: "6-1"
                }
            },
            {
                path: "admin",
                name: "AdminName",
                component: () => import('@/views/SystemSet/Admin.vue'),
                meta: {
                    title: "systemManagement.Administrator",
                    id: "6-2"
                }
            },
            {
                path: "operation",
                name: "OperationName",
                component: () => import('@/views/SystemSet/Operation.vue'),
                meta: {
                    title: "systemManagement.operationlog",
                    id: "6-3"
                }
            },
            {
                path: "role",
                name: "Role",
                component: () => import('@/views/SystemSet/Role.vue'),
                meta: {
                    title: "systemManagement.roleManagement",
                    id: "6-4"
                }
            }
        ]
    }
]
